package com.briup.pts.service;

import com.briup.pts.domain.bean.Disease;
import com.briup.pts.domain.bean.DiseaseRecord;
import com.briup.pts.domain.vo.DiseaseRecordWithDisease;
import com.github.pagehelper.PageInfo;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * @author 25095
 * @description
 * @data 2024/11/28-14:48
 */
public interface DiseaseRecordService {

    List<Disease> queryAllDisease();

    void deleteById(Integer drId);

    void deleteByIdAll(@NotNull(message = "id必须存在") @Min(value = 1L, message = "id必须有效")List<Integer> ids);

    void saveOrUpdate(DiseaseRecord dr);

    PageInfo<DiseaseRecordWithDisease> pageQueryByCondition(Integer pageNum, Integer pageSize, Integer drDId, String drStatus);
}
